package appgui;

import java.awt.EventQueue;

import javax.swing.JFrame;
import javax.swing.JScrollPane;
import javax.swing.JButton;
import javax.swing.JTextField;

public class TextInputWindow {

	private JFrame textInputFrame;
	private JTextField txtRecipeName;

	/**
	 * Launch the application.
	 */
	public static void main(String[] args) {
		EventQueue.invokeLater(new Runnable() {
			public void run() {
				try {
					TextInputWindow window = new TextInputWindow();
					window.textInputFrame.setVisible(true);
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
	}

	/**
	 * Create the application.
	 */
	public TextInputWindow() {
		initialize();
	}

	/**
	 * Initialize the contents of the frame.
	 */
	private void initialize() {
		textInputFrame = new JFrame();
		textInputFrame.setTitle("Enter Recipe");
		textInputFrame.setBounds(100, 100, 450, 300);
		textInputFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		textInputFrame.getContentPane().setLayout(null);
		
		JScrollPane scrollPaneTextInput = new JScrollPane();
		scrollPaneTextInput.setBounds(20, 16, 410, 205);
		textInputFrame.getContentPane().add(scrollPaneTextInput);
		
		JButton btnCreateRecipe = new JButton("Create Recipe!");
		btnCreateRecipe.setBounds(313, 233, 117, 29);
		textInputFrame.getContentPane().add(btnCreateRecipe);
		
		txtRecipeName = new JTextField();
		txtRecipeName.setText("Recipe Name");
		txtRecipeName.setBounds(30, 232, 134, 28);
		textInputFrame.getContentPane().add(txtRecipeName);
		txtRecipeName.setColumns(10);
	}
}
